<!--
  Copyright 2011 Google Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <include layout="@layout/colorstrip" />

    <FrameLayout android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <FrameLayout
            android:id="@+id/fragment_container_map"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" />

        <LinearLayout android:id="@+id/map_detail_popup"
            android:visibility="gone"
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginLeft="@dimen/activity_side_padding"
            android:layout_marginRight="@dimen/activity_side_padding"
            android:layout_marginTop="@dimen/activity_vert_padding"
            android:layout_marginBottom="@dimen/activity_vert_padding">

            <!-- Dummy spacer view to free up 50% of the horizontal screen space -->
            <View android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:layout_weight="1" />

            <RelativeLayout
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:layout_marginLeft="@dimen/activity_pane_spacing"
                android:padding="@dimen/detail_pane_padding"
                android:background="?android:attr/detailsElementBackground">

                <ImageButton android:id="@+id/close_button"
                    android:layout_alignParentTop="true"
                    android:layout_alignParentRight="true"
                    android:src="@drawable/ic_close_holo_light"
                    android:background="@drawable/panel_button_background"
                    android:layout_width="@dimen/panel_button_width"
                    android:layout_height="@dimen/detail_breadcrumb_height" />

                <android.app.FragmentBreadCrumbs android:id="@+id/breadcrumbs"
                    android:layout_alignParentTop="true"
                    android:layout_alignParentLeft="true"
                    android:layout_toLeftOf="@id/close_button"
                    android:layout_height="@dimen/detail_breadcrumb_height"
                    android:layout_width="fill_parent"
                    android:gravity="center_vertical|left" />

                <FrameLayout android:id="@+id/fragment_container_map_detail"
                    android:layout_alignParentBottom="true"
                    android:layout_alignParentLeft="true"
                    android:layout_alignParentRight="true"
                    android:layout_below="@id/breadcrumbs"
                    android:layout_width="fill_parent"
                    android:layout_height="0dp" />
            </RelativeLayout>
        </LinearLayout>
    </FrameLayout>
</LinearLayout>
